id_card = "110101199003074512"
words1=id_card[:6]  ##提取前 6 位地址码
print(words1)
words2=id_card[6:10] ##提取出生年（第 7-10 位）
print(words2)
words3=id_card[-12:-8]
print(words3)
birth_month=id_card[10:12]
birth_day=id_card[12:14]
print(f"出生年月:{words2}年{birth_month}月{birth_day}日")
gender_char=id_card[16]
gender = "男性" if int(gender_char) % 2 == 1 else "女性"
print(f"性别：{gender}")